//
//  WBNavigationController.swift
//  tangbinWeibo
//
//  Created by 唐斌 on 2016/12/25.
//  Copyright © 2016年 唐斌. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController
{

    override func viewDidLoad()
    {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning()
    {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
        
        // An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required.
    }
    
    // 重载
    override func pushViewController(_ viewController: UIViewController, animated: Bool)
    {
        if childViewControllers.count > 0
        {
            viewController.hidesBottomBarWhenPushed = true
        }
        
        super.pushViewController(viewController, animated: animated);
    }
    
}













